<!-- 我的表格 -->

<template>
  <WebTable path="user" :key="user_visible" idKey="memberUaaUserId" class="EmergencyGroup-GroupMember" auto>
    <RowCheckbox />

    <RowTitle label="人员名称" bind="memberUserName">
      <template #default="{ row, text }">
        <span>{{ text }}</span>
        <i v-if="row.isLeader === 1" class="el-icon-user-solid" />
      </template>
    </RowTitle>

    <RowDict label="小组名称" bind="emergencyGroupId, emergencyGroupName" :dict="group_selectDict" />

    <RowText :label="`所属${CORE.MAP.ORGAN}`" bind="organizationName" :minWidth="100" />

    <RowText label="联系电话" bind="memberUserPhone" />
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb('user', 'user_'), CORE.mixSelect('group', 'group_')],
}
</script>

<style lang="scss">
@import '@admin/views/Maintain/Emergency/EmergencyGroup/MyModal/GroupMember/index.scss';
</style>
